$(document).ready(function () {

    $('#add_form').submit(function () {
        var form = new FormData(this);
        $.ajax({
            type: "POST",
            dataType: "json",
            url: "appInfo/addAppInfo",
            data: form,
            // async: false,
            // cache: false,
            contentType: false,
            processData: false,
            success: function (data) {
                if( data == true || data == 'true') {
                    top.location.href= "pages/developer/devIndex.html";
                } else {
                    alert("error:"+data.responseText);
                }
            },
            error: function(data) {
                alert("error:"+data.responseText);
            }
        });
        return false;

    });
});